package com.zb.framework.api.microservice;

import com.zb.zeus.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Description 对外暴露的服务
 * @Author jfu10@jmc.com.cn
 * @Created Date: 2024/4/9 16:30
 * @InterfaceName ExposeMicroService
 * @Version: 1.0
 */
@FeignClient(contextId = "exposeMicroService", value = "${feign.ref.service.project-name:PROJECT-NAME}",
        primary = false)
public interface ExposeMicroService {


    @PostMapping("/rpc/com.zb.framework.api.microservice.ExposeMicroService/exposeDemoMethod")
    AjaxResult exposeDemoMethod(String name);

    @PostMapping("/rpc/com.zb.framework.api.microservice.ExposeMicroService/exposeGetMethod")
    AjaxResult exposeGetMethod(String name);

}
